Skip to content

nixos/starship: skip one program invocation on each shell init#490728

Merged
SigmaSquadron merged 1 commit intoNixOS:masterfrom
nagy:starship
Feb 16, 2026
Merged

nixos/starship: skip one program invocation on each shell init#490728
SigmaSquadron merged 1 commit intoNixOS:masterfrom
nagy:starship

Conversation

@nagy
Copy link
Copy Markdown
Member

@nagy nagy commented Feb 15, 2026

The code that is being evaled without the --print-full-init flag is this:

eval -- "$(/nix/store/...-starship-1.24.2/bin/starship init bash --print-full-init)"

We can skip one program invocation and directly call starship init bash --print-full-init.

This is a replication of my other PR in home-manager:

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

The code that is being evaled without the `--print-full-init` flag is
this:

```
eval -- "$(/nix/store/...-starship-1.24.2/bin/starship init bash --print-full-init)"
```

We can skip one program invocation and directly call `starship init
bash --print-full-init`.

This is a replication of my other PR in home-manager:

- nix-community/home-manager#2862
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Feb 15, 2026
@nixpkgs-ci nixpkgs-ci bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Feb 15, 2026
Copy link
Copy Markdown
Contributor

@SigmaSquadron SigmaSquadron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me. Tests still pass.

@SigmaSquadron SigmaSquadron added this pull request to the merge queue Feb 16, 2026
@SigmaSquadron
Copy link
Copy Markdown
Contributor

Might also be nice to get nix-community/home-manager#8705 into Nixpkgs.

Merged via the queue into NixOS:master with commit 56a06a9 Feb 16, 2026
34 of 36 checks passed
@nagy nagy deleted the starship branch February 16, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants